import { getAction, deleteAction, putAction, postAction, downFilePost, downFile, uploadAction } from '@/api/manage'

const areaList = params => postAction(`/cctv/area/list`, params)
const areaCameras = params => postAction(`/cctv/area/cameras`, params)
const areaAdd = params => postAction(`/cctv/area/add`, params)
const areaUpdate = params => postAction(`/cctv/area/update`, params)
const areaUpdateStatus = params => postAction(`/cctv/area/update-status`, params)
const areaDelete = params => postAction(`/cctv/area/delete`, params)
const areaDetail = params => getAction(`/cctv/area/detail`, params)
const deviceList = params => postAction(`/cctv/device/list`, params) //重点监控区域监控设备列表
const deviceDetail = params => getAction(`/cctv/device/detail`, params)
const deviceTop = params => postAction(`/cctv/device/pin-top`, params)
const deviceShow = params => postAction(`/cctv/device/show`, params)
const lhAreaList = params => postAction(`/cctv/lh-area/list`, params) //行政区域监控设备列表
const lhAreaTree = params => getAction(`/cctv/lh-area/tree`, params)
const streamReplay = params => postAction(`/cctv/device/stream/replay`, params)
export {
  areaList,
  areaCameras,
  areaAdd,
  areaDetail,
  areaUpdate,
  deviceList,
  deviceDetail,
  lhAreaList,
  deviceTop,
  deviceShow,
  areaUpdateStatus,
  areaDelete,
  lhAreaTree,
  streamReplay
}
